package xyy.d3erpapi.pojo.poppo;

import java.io.Serializable;
import java.math.BigDecimal;

public class PopErpSkuPriceDto implements Serializable {
    private static final long serialVersionUID = 3405586896835953803L;
    private Long id;
    private String barcode;
    private String erpCode;
    private BigDecimal monomerPrice;
    private BigDecimal chainPrice;
    private BigDecimal basePrice;
    private BigDecimal erpOriginalFob;
    private BigDecimal erpOriginalChainPrice;

    public PopErpSkuPriceDto() {
    }

    public Long getId() {
        return this.id;
    }

    public String getBarcode() {
        return this.barcode;
    }

    public String getErpCode() {
        return this.erpCode;
    }

    public BigDecimal getMonomerPrice() {
        return this.monomerPrice;
    }

    public BigDecimal getChainPrice() {
        return this.chainPrice;
    }

    public BigDecimal getBasePrice() {
        return this.basePrice;
    }

    public BigDecimal getErpOriginalFob() {
        return this.erpOriginalFob;
    }

    public BigDecimal getErpOriginalChainPrice() {
        return this.erpOriginalChainPrice;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public void setErpCode(String erpCode) {
        this.erpCode = erpCode;
    }

    public void setMonomerPrice(BigDecimal monomerPrice) {
        this.monomerPrice = monomerPrice;
    }

    public void setChainPrice(BigDecimal chainPrice) {
        this.chainPrice = chainPrice;
    }

    public void setBasePrice(BigDecimal basePrice) {
        this.basePrice = basePrice;
    }

    public void setErpOriginalFob(BigDecimal erpOriginalFob) {
        this.erpOriginalFob = erpOriginalFob;
    }

    public void setErpOriginalChainPrice(BigDecimal erpOriginalChainPrice) {
        this.erpOriginalChainPrice = erpOriginalChainPrice;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof xyy.d3erpapi.pojo.poppo.PopErpSkuPriceDto)) {
            return false;
        } else {
            xyy.d3erpapi.pojo.poppo.PopErpSkuPriceDto other = (xyy.d3erpapi.pojo.poppo.PopErpSkuPriceDto) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label107:
                {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label107;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label107;
                    }

                    return false;
                }

                Object this$barcode = this.getBarcode();
                Object other$barcode = other.getBarcode();
                if (this$barcode == null) {
                    if (other$barcode != null) {
                        return false;
                    }
                } else if (!this$barcode.equals(other$barcode)) {
                    return false;
                }

                Object this$erpCode = this.getErpCode();
                Object other$erpCode = other.getErpCode();
                if (this$erpCode == null) {
                    if (other$erpCode != null) {
                        return false;
                    }
                } else if (!this$erpCode.equals(other$erpCode)) {
                    return false;
                }

                label86:
                {
                    Object this$monomerPrice = this.getMonomerPrice();
                    Object other$monomerPrice = other.getMonomerPrice();
                    if (this$monomerPrice == null) {
                        if (other$monomerPrice == null) {
                            break label86;
                        }
                    } else if (this$monomerPrice.equals(other$monomerPrice)) {
                        break label86;
                    }

                    return false;
                }

                label79:
                {
                    Object this$chainPrice = this.getChainPrice();
                    Object other$chainPrice = other.getChainPrice();
                    if (this$chainPrice == null) {
                        if (other$chainPrice == null) {
                            break label79;
                        }
                    } else if (this$chainPrice.equals(other$chainPrice)) {
                        break label79;
                    }

                    return false;
                }

                label72:
                {
                    Object this$basePrice = this.getBasePrice();
                    Object other$basePrice = other.getBasePrice();
                    if (this$basePrice == null) {
                        if (other$basePrice == null) {
                            break label72;
                        }
                    } else if (this$basePrice.equals(other$basePrice)) {
                        break label72;
                    }

                    return false;
                }

                Object this$erpOriginalFob = this.getErpOriginalFob();
                Object other$erpOriginalFob = other.getErpOriginalFob();
                if (this$erpOriginalFob == null) {
                    if (other$erpOriginalFob != null) {
                        return false;
                    }
                } else if (!this$erpOriginalFob.equals(other$erpOriginalFob)) {
                    return false;
                }

                Object this$erpOriginalChainPrice = this.getErpOriginalChainPrice();
                Object other$erpOriginalChainPrice = other.getErpOriginalChainPrice();
                if (this$erpOriginalChainPrice == null) {
                    if (other$erpOriginalChainPrice != null) {
                        return false;
                    }
                } else if (!this$erpOriginalChainPrice.equals(other$erpOriginalChainPrice)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof xyy.d3erpapi.pojo.poppo.PopErpSkuPriceDto;
    }

    @Override
    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $barcode = this.getBarcode();
        result = result * 59 + ($barcode == null ? 43 : $barcode.hashCode());
        Object $erpCode = this.getErpCode();
        result = result * 59 + ($erpCode == null ? 43 : $erpCode.hashCode());
        Object $monomerPrice = this.getMonomerPrice();
        result = result * 59 + ($monomerPrice == null ? 43 : $monomerPrice.hashCode());
        Object $chainPrice = this.getChainPrice();
        result = result * 59 + ($chainPrice == null ? 43 : $chainPrice.hashCode());
        Object $basePrice = this.getBasePrice();
        result = result * 59 + ($basePrice == null ? 43 : $basePrice.hashCode());
        Object $erpOriginalFob = this.getErpOriginalFob();
        result = result * 59 + ($erpOriginalFob == null ? 43 : $erpOriginalFob.hashCode());
        Object $erpOriginalChainPrice = this.getErpOriginalChainPrice();
        result = result * 59 + ($erpOriginalChainPrice == null ? 43 : $erpOriginalChainPrice.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "PopErpSkuPriceDto(id=" + this.getId() + ", barcode=" + this.getBarcode() + ", erpCode=" + this.getErpCode() + ", monomerPrice=" + this.getMonomerPrice() + ", chainPrice=" + this.getChainPrice() + ", basePrice=" + this.getBasePrice() + ", erpOriginalFob=" + this.getErpOriginalFob() + ", erpOriginalChainPrice=" + this.getErpOriginalChainPrice() + ")";
    }
}